package com.zhuoyue.biz.core.command.cmd.common.scene;

import com.zhuoyue.common.utils.CmdUtils;

/**
 * @author wjming
 * <p>
 * 场景控制参数配置
 */
public class SceneControlUtil {
    public static String controlSceneCmd(Integer code, String gatewayMac) {
        String cmdStr = "5000" + gatewayMac + "0209" + CmdUtils.intToHexTwo(code);
        String cmd = "2A" + CmdUtils.getDateLength(cmdStr) + cmdStr + CmdUtils.getCmdBodySum(cmdStr) + "23";
        return cmd;
    }
}
